<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:71:"D:\wamp\www\shop\public/../application/madmin\view\Config\showBase.html";i:1548402458;s:71:"D:\wamp\www\shop\public/../application/madmin\view\Public\showBase.html";i:1547543098;}*/ ?>
<!DOCTYPE HTML>
<html>
	<head>
		<title>后台管理</title>
	    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    <meta charset="UTF-8" />
	    <link rel="icon" type="image/ico" href="__IMG__/favicon.ico" />
	    <link type="text/css" rel="stylesheet" href="__CSS__/vendor/bootstrap/bootstrap.min.css" />
	    <link type="text/css" rel="stylesheet" href="__CSS__/content.css" />
		<link type="text/css" rel="stylesheet" href="__CSS__/vendor/font-awesome.css" />
		<link type="text/css" rel="stylesheet" href="__CSS__/vendor/bootstrap-checkbox.css" />
		<link type="text/css" rel="stylesheet" href="__JS__/vendor/chosen/css/chosen.min.css" />
		<link type="text/css" rel="stylesheet" href="__JS__/vendor/chosen/css/chosen-bootstrap.css" />
		<link type="text/css" rel="stylesheet" href="__CSS__/nicescroll.css" />
        <link type="text/css" rel="stylesheet" href="__CSS__/adapt.css" />
        <link type="text/css" rel="stylesheet" href="__CSS__/pagination.css" />
        <link type="text/css" rel="stylesheet" href="__CSS__/buttons.css" />
		<script type="text/javascript" src="__JS__/jquery-3.3.1.min.js"></script>
		<script type="text/javascript" src="__JS__/vendor/layer/layer.js"></script>
		<script type="text/javascript" src="__JS__/vendor/bootstrap/bootstrap.min.js"></script>
		<script type="text/javascript" src="__JS__/vendor/nicescroll/jquery.nicescroll.min.js"></script>
		<script type="text/javascript" src="__JS__/vendor/chosen/chosen.jquery.min.js"></script>
		<script type="text/javascript" src="__JS__/content.js"></script>
	</head>
	<body class="no-bg">
		<div id="wrap">
	        <div class="row">
	            <div id="content" class="col-md-12">
	            	
<link rel="stylesheet" href="__JS__/vendor/tabdrop/css/tabdrop.css" />
<link rel="stylesheet" href="__CSS__/tabs.css" />
<div class="main">
    <div class="row">
        <div class="col-md-12">
            <section class="tile color transparent-black">
                <div class="tile-header">
                    <h1><?php echo lang('XtPzKj'); ?></h1>
                    <div class="controls">
                        <a href="<?php echo url('Config/showBase'); ?>"><i class="fa fa-refresh"></i></a>
                    </div>
                </div>
                <div class="tile-widget bg-transparent-black-2" style="padding-top:0">
                    <div class="row">
                        <div class="col-sm-12">
                            <ul class="nav nav-tabs tabdrop">
                                <?php if(!(empty($Group) || (($Group instanceof \think\Collection || $Group instanceof \think\Paginator ) && $Group->isEmpty()))): if(is_array($Group) || $Group instanceof \think\Collection || $Group instanceof \think\Paginator): $key = 0; $__LIST__ = $Group;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($key % 2 );++$key;?>
                                        <li <?php if($key == '1'): ?>class="active"<?php endif; ?>><a href="#<?php echo $vo['group_type']; ?>-tab" data-toggle="tab"><?php echo $vo['group_name']; ?></a></li>
                                    <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="tile-body nopadding">
                    <form class="FormTable" action="" method="post">
                        <div class="tile-body tab-content nopadding rounded-bottom-corners" style="background-color: transparent;">
                            <?php if(!(empty($Lists) || (($Lists instanceof \think\Collection || $Lists instanceof \think\Paginator ) && $Lists->isEmpty()))): if(is_array($Lists) || $Lists instanceof \think\Collection || $Lists instanceof \think\Paginator): $key = 0; $__LIST__ = $Lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($key % 2 );++$key;?>
                                    <ul id="<?php echo $vo['group_type']; ?>-tab" class="tab-pane fade <?php if($key == '1'): ?>in active<?php endif; ?>" style="padding: 5px 0 0 0;">
                                        <div class="tile-body">
                                            <div class="row">
                                                <?php if(is_array($vo['group_list']) || $vo['group_list'] instanceof \think\Collection || $vo['group_list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['group_list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$group): $mod = ($i % 2 );++$i;if($group['config_type'] == 1): ?>
                                                        <div class="form-group col-sm-12">
                                                            <label><?php echo $group['config_title']; ?></label>
                                                            <input type="text" class="form-control" name="<?php echo $group['config_name']; ?>" value="<?php echo $group['config_value']; ?>" placeholder="<?php echo $group['config_remark']; ?>">
                                                        </div>
                                                    <?php elseif($group['config_type'] == 2): ?>
                                                        <div class="form-group col-sm-12">
                                                            <label><?php echo $group['config_title']; ?></label>
                                                            <select class="chosen-select chosen-transparent form-control" name="<?php echo $group['config_name']; ?>"> 
                                                                <?php if(is_array($group['config_select']) || $group['config_select'] instanceof \think\Collection || $group['config_select'] instanceof \think\Paginator): $i = 0; $__LIST__ = $group['config_select'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$select): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $select; ?>" <?php if($select == $group['config_value']): ?>selected<?php endif; ?>><?php echo $select; ?></option>
                                                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                                            </select>
                                                        </div>
                                                    <?php elseif($group['config_type'] == 3): ?>
                                                        <div class="form-group col-sm-12">
                                                            <label for="file"><?php echo $group['config_title']; ?></label>
                                                            <div class="input-group">
                                                                <input type="text" class="form-control" placeholder="<?php echo $group['config_remark']; ?>" readonly="readonly" style="background-color:rgba(0, 0, 0, 0.3);border: 0;color: rgba(255, 255, 255, 0.8);font-size: 12px;-webkit-font-smoothing: antialiased;line-height: 20px;" />
                                                                <span class="input-group-btn">
                                                                    <span class="btn btn-<?php echo config('CNF_BTNCOLOR'); ?> btn-file">
                                                                        <i class="fa fa-upload"></i><input type="file" name="<?php echo $group['config_name']; ?>" accept="image/jpeg,image/jpg,image/png" multiple="" />
                                                                    </span>
                                                                </span>
                                                            </div>
                                                        </div>
                                                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                            </div>
                                        </div>
                                    </ul>
                                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                        </div>
                    </form>
                </div>
                <div class="tile-footer bg-transparent-black-2 rounded-bottom-corners">
                    <div class="row">
                        <div class="col-sm-12 text-center">
                            <button type="button" class="btn btn-<?php echo config('CNF_BTNCOLOR'); ?> ajax-post"><?php echo lang('XtAnTj'); ?></button>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>

	        	</div>
	        </div>
	    </div>
		
    <script src="__JS__/vendor/tabdrop/bootstrap-tabdrop.min.js"></script>

    <script>
        $(document).on('change', '.btn-file :file',function(){
            var input = $(this),
            numFiles = input.get(0).files ? input.get(0).files.length : 1,
            label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
            input.trigger('fileselect', [numFiles, label]);
        });

        $(function(){
            $('.tabdrop').tabdrop({text: '<i class="fa fa-th-list"></i>'});

            $('.btn-file :file').on('fileselect', function(event, numFiles, label){
                var input = $(this).parents('.input-group').find(':text'),
                log = numFiles > 1 ? numFiles + ' files selected' : label;
                console.log(log);
                if(input.length){
                    input.val(log);
                }else{
                    if(log)layer.msg(log);
                }
            });
        })
    </script>

	</body>
</html>